package itdep.services.address;

import itdep.domain.address.District;
import itdep.domain.address.Settlement;
import itdep.services.NamedEntityQuery;

/**
 * @author Ivan Khalopik
 * @version $Revision: 42 $ $Date: 2010-06-25 09:12:54 +0000 (Fri, 25 Jun 2010) $
 */
public class SettlementQuery
		extends NamedEntityQuery<Settlement, SettlementQuery>
		implements SettlementFilter {

	private District district;

	public SettlementQuery() {
		super(Settlement.class);
	}

	@Override
	public District getDistrict() {
		return district;
	}

	public SettlementQuery setDistrict(District district) {
		this.district = district;
		return query();
	}
}
